import type { FC, PropsWithChildren } from 'react'
import React from 'react'
import type { SelectProps } from 'rc-select'
import Select, { Option } from 'rc-select'
import './index.scss'

const Index: FC<PropsWithChildren<SelectProps>> = (props) => {
  return (
    <Select
      listHeight={200}
      showSearch
      allowClear
      {
        ...props
      }
      onMouseDown={(e) => {
        document.querySelectorAll('input').forEach((el) => {
          el.blur()
        })
      }}
    >
    </Select>
  )
}
export { Option }
export default Index
